package com.ashleyleung.jetpack_b_station.lifecycle

import androidx.lifecycle.LifecycleEventObserver
import timber.log.Timber

/**
 * @author lxy
 * @name
 * @class describe 自己写的lifecycle
 * @date 2022-06-23
 * Copyright (c)  Guangzhou GCI Science & Technology Co., Ltd.All rights reserved
 */
open class ViewLifeImplAbsLifecycle : AbsLifecycle() {
    override fun onCreateLc() {
        //监听GPS信号变化
        Timber.e("onCreateLc vli")
    }

    override fun onStartLc() {
       Timber.e("监听GPS信号变化 ViewLifeImpl")
    }

    override fun onResumeLc() {
        Timber.e("onResume vli")
    }

    override fun onPauseLc() {
        Timber.e("onPause vli")

    }

    override fun onStopLc() {
        //停止GPS信号变化监听，
        Timber.e("onStopLc vli 停止GPS信号变化监听 ViewLifeImpl")
    }

    override fun onDestroyLc() {
        Timber.e("onDestroy vli")
    }

    override fun onViewLifeStateChange(state: LifeState) {
        Timber.e("onViewLifeStateChange vli")
    }

}